<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var arr = [1, 2, 3, 2, 3, 3, 4 ,5]

        // // set不允许数据中有重复的数据 set得到的数据是一个对象
        // var set = [...new Set(arr)]
        // console.log(set)

        // var arr = [
        //     {
        //         name: "zhangsan"
        //     },
        //     {
        //         name: "zhangsan"
        //     }
        // ]

        // var set = [...new Set(arr)]
        // console.log(set)
    </script>
</body>
</html>